package com.jinshan.edu.service;

import com.jinshan.edu.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jinshan.response.ChapterVO;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Jinshan
 * @since 2020-06-27
 */
public interface EduChapterService extends IService<EduChapter> {

    void saveChapter(EduChapter chapter);

    void updateChapter(EduChapter chapter);

    boolean deleteChapterById(String id);

    List<ChapterVO> getAllChapterByCourseId(String courseId);

    EduChapter getChapterById(String id);

    void deleteChapterByCourseId(String courseId);
}
